#ifndef _BTHREAD_H_
#define _BTHREAD_H_

#include "../define/define.h"

class bthread
{
private:
	pthread_t m_threadid;
	bool m_created;

	bool  WaitFor();
	static void* Run(void* a_func);
	
public:
    
	bool   m_finished;
    virtual  void  Execute();

    bthread();
    ~bthread();

    void StopThread();
    
    bool InitThread(bool a_suspend);
};
#endif
